"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
//接口的函数应用
{
    var sum = function (num1, num2) {
        return num1 + num2;
    };
    console.log(sum(1, 2));
    //接口数组，对象使用
    //数组
    var arr_1 = [12, 2, 3];
    var arr1_1 = [12, 2, 3];
    var arr2 = [12, 2, 3];
    var obj = { name: '整数', age: 2 };
    var obj1 = { name: '整数', age: 2 };
    var obj2 = { name: '整数', age: 2, count: { a: 1 } };
    var Person_1 = /** @class */ (function () {
        function Person() {
            this.sex = true;
        }
        return Person;
    }());
    var Male_1 = /** @class */ (function (_super) {
        __extends(Male, _super);
        function Male() {
            var _this = _super !== null && _super.apply(this, arguments) || this;
            _this.name = '张三';
            return _this;
        }
        Male.prototype.eat = function (food) {
            console.log(this.name + '吃' + food);
        };
        return Male;
    }(Person_1));
    var m_1 = new Male_1();
    console.log(m_1.eat('饺子'));
    console.log(m_1.name, m_1.age, m_1.sex);
}
